package com.foolishbird.sdk.requester;

import android.accounts.NetworkErrorException;


import com.foolishbird.sdk.params.PostRequestParams;

import java.io.IOException;
import java.io.InputStream;



public interface HttpRequester {

    InputStream getInputStream(String url, Method httpMethod, PostRequestParams requestParams) throws NetworkErrorException, IOException;

    public enum Method {
        GET("GET"), POST("POST"), HEAD("HEAD"), OPTIONS("OPTIONS"), PUT("PUT"), DELETE("DELETE"), TRACE("TRACE"), UNKNOWN("");

        private String method;

        Method(String method) {
            this.method = method;
        }

    }
}
